/*
 * @Author: xielikang
 * @Date: 2021-09-30 10:03:42
 * @Purpose: CSS原子类
 * @Last Modified by: xielikang
 * @Last Modified time: 2022-08-10 17:49:22
 */

@import './variable.scss', './layout.scss', './util.scss', './component.scss';

* {
  padding: 0;
  margin: 0;
  border-radius: 0;
  box-sizing: border-box;
  word-wrap: break-word; // 解决长单词会溢出父元素
  -webkit-text-size-adjust: 100%; // 屏幕旋转字体大小保持一致
  -webkit-font-smoothing: antialiased; // 字体抗锯齿
  -webkit-overflow-scrolling: touch; // 让自定义滚动条拥有顺畅的滑动
  -webkit-tap-highlight-color: transparent; // 移动端点击不高亮
}

// 重置滚动条
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-thin);
}

html,
page {
  display: block;
  height: 100%;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: var(--font-size);
  line-height: 2;
  color: var(--color-white);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body,
#app {
  display: block;
  height: 100%;
  font-size: var(--font-size);
  background-color: var(--color-black);

  h1 {
    line-height: 1.2;
  }

  ul {
    list-style: none;
  }

  a {
    color: var(--color-black);
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }

  img {
    display: block;
    max-width: 100%;
    object-fit: cover;
  }

  input,
  textarea,
  button {
    font-family: inherit;
    line-height: inherit;
    caret-color: var(--color-primary);

    &::placeholder {
      color: var(--color-thin) !important;
    }
  }

  .el-button {
    padding: 4px 35px;
  }

  .el-loading-mask {
    background-color: transparent;
  }
}
